package cn.edu.nju.software.cdiy.dao;

import java.util.Date;
import java.util.List;

import cn.edu.nju.software.cdiy.bean.Uorder;
import cn.edu.nju.software.cdiy.bean.User;
import cn.edu.nju.software.cdiy.bean.Value;

public interface UorderDao {

	public Uorder saveUorder(Uorder uorder);
	
	public List<Uorder> getUserUorders(User user);
	
	public Uorder getUorderById(Long uorderId);
	
	/*
	 * 用于用户界面，分类Uorder
	 */
	public List<Uorder> getUorderState(User user,Value state);
	
	//设置uorder的类型state
	public boolean saveUorderState(Uorder u,Value state);
	
	//用于管理员界面，分类Uorder
	public List<Uorder> getAllUorder(Value state);
	
	public List<Uorder> getAllUorderAndDate(Date startDate,Value state);
	
}
